package org.scohen.juploadr.uploadapi.zooomr.tags;

import org.scohen.juploadr.uploadapi.zooomr.DefaultZooomrHandler;
import org.xml.sax.SAXException;

public class GetListUserHandler extends DefaultZooomrHandler {
    private GetListUser parent;

    public GetListUserHandler(Object parent) {
        super(parent);
        this.parent = (GetListUser) parent;
    }

    public void characters(char[] ch, int start, int length)
            throws SAXException {
        String cdata = new String(ch, start, length).trim();
        if (cdata.length() > 0) {
            if (lastTag.equals("tag")) {
                parent.addTag(cdata);
            }
        }
    }

}
